import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { HomeScreen } from './src/screens/HomeScreen';
import { ReaderScreen } from './src/screens/ReaderScreen';

const Stack = createNativeStackNavigator();

const App = () => {
  return (
    <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen name="Home" component={HomeScreen} options={{ title: '小说阅读器' }} />
        <Stack.Screen name="Reader" component={ReaderScreen} options={{ title: '阅读' }} />
      </Stack.Navigator>
    </NavigationContainer>
  );
};

export default App;
